// 销售统计
import request from '@/utils/request'

/**
 * 获取时间
 * @param {*} beginCreateTime  //开始时间
 * @param {*} endCreateTime  //结束时间
 * @returns
 */
export const getSaleTimeApi = (beginCreateTime, endCreateTime) => {
  return request({
    url: `/report/salesStatistics/${beginCreateTime}/${endCreateTime}`
  })
}

/**
 * 销售统计列表
 * @param {*} params
 * @returns
 */
export const getsaleListApi = (params) => {
  return request({
    url: '/report/deptStatisticsList',
    params
  })
}
